package com.bdqn.Service.MaterialType;

import com.bdqn.entity.MaterialType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaterialTypeService {
    /**
     * 按照条件查询MaterialType并且实行分页
     */
    List<MaterialType> selectMaterialType( String MaterialNumber,  String NameOfGoods, Integer page,  Integer lim);
    /**
     * 根据id查询MaterialType
     * @param id
     * @return
     */
    MaterialType selectMaterialTypeById(int id);
    /**
     * 按照id删除MaterialType
     */
    int deleteMaterialType(int id);
    /**
     * 获取MaterialType总条数或者时待条件 分页时会用上
     */
    int getMaterialTypeCount( String MaterialNumber, String NameOfGoods);
    /**
     修改
     */
    int updateMaterialType(MaterialType materialType);
    /**
     * 添加
     */
    int insertMaterialType(MaterialType materialType);
}
